# Creates a set of n bodies with random masses distributed randomly.

import random as random

xLim = [-1.0,1.0]
yLim = [-1.0,1.0]
mLim = [1.0, 100.0]

outFile = "random.nbd"

random.seed()
def makeRandom(n):
   of = open(outFile, 'w')

   for i in range(10):
      mass = random.uniform(*mLim)

      x = random.uniform(*xLim)
      y = random.uniform(*yLim)

      st = str(mass) + "," + str(x) + "," + str(y) + "," + str(0.0) + ","+ str(0.0) + ","+ str(0.0) + ","+ str(0.0) + "\n"

      of.write(st);


   of.close()


makeRandom(10);
